package cn.iocoder.yudao.module.member.controller.admin.email.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 用户邮箱新增/修改 Request VO")
@Data
public class EmailSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "20858")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15862")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "邮箱", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "邮箱不能为空")
    private String email;

    @Schema(description = "使用次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "12566")
    @NotNull(message = "使用次数不能为空")
    private Integer usageCount;

}